Skip to content

Fix clippy warn #546

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 20, 2019
Merged

Fix clippy warn #546

merged 3 commits into from
Nov 20, 2019

Conversation

k-nasa
Copy link
Member

@k-nasa k-nasa commented Nov 15, 2019

No description provided.

@k-nasa k-nasa changed the title Fix clippy Fix clippy warn Nov 15, 2019
@yoshuawuyts
Copy link
Contributor

This patch indeed seems to fix the clippy issues; but @stjepang and I have been talking over the past week, and a lot of the clippy lints are starting to feel a bit tedious. In addition to that things seem to be breaking fairly regularly on the clippy side, which made us question if we should even keep it.

@k-nasa how do you feel about clippy?

@k-nasa
Copy link
Member Author

k-nasa commented Nov 15, 2019

umm. This problem is difficult.
Certainly working with code conventions is tedious.
The problems I have fixed now are most that don't have to be fixed.
However, clippy sometimes displays important warnings.

For example this: https://rust-lang.github.io/rust-clippy/master/index.html#redundant_clone

So I think it is difficult to ignore it completely.
In addition, it is cumbersome to choose which items to fix and which to ignore.

I don't have conclution for this problem.
but, I think someone needs to face clippy and make the appropriate corrections.

I'm interested in what you and @stjepang think.

Copy link
Contributor

@yoshuawuyts yoshuawuyts left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fair enough; you make some great points. Thanks for the patch @k-nasa; let's punt the discussion whether we should keep using clippy for another time, and merge this to fix clippy instead.

@yoshuawuyts yoshuawuyts merged commit 8ea920c into async-rs:master Nov 20, 2019
@k-nasa k-nasa deleted the fix_clippy branch November 20, 2019 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants